import { GetCurrentLoginInformations } from './dto/getCurrentLoginInformations';
import http from '../httpService';

class SessionService {
  public async getCurrentLoginInformations(): Promise<GetCurrentLoginInformations> {
    let result = await http.get('/api/services/app/Session/GetCurrentLoginInformations', {
      headers: {
        //TODO... 'Abp.TenantId': abp.multiTenancy.getTenantIdCookie(),
        'Abp.TenantId': 1,
      },
    });
    return result.data.result;
  }
}

export default new SessionService();
